package edu.unindra.elearning.form.addin;

import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.Insets;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

import edu.unindra.elearning.util.ButtonImageReflection;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ELearningFormMainAdmin extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1320811678631342254L;

	private GridBagConstraints grid2;

	private ButtonImageReflection btnReport;
	private ButtonImageReflection btnOperator;
	private ButtonImageReflection btnSoal;

	public ELearningFormMainAdmin() {
		initComponents();
	}

	public ButtonImageReflection getBtnReport() {
		return btnReport;
	}

	public ButtonImageReflection getBtnOperator() {
		return btnOperator;
	}

	public ButtonImageReflection getBtnSoal() {
		return btnSoal;
	}

	private void initComponents() {
		setOpaque(false);
		setLayout(new java.awt.GridBagLayout());

		btnOperator = new ButtonImageReflection();
		btnOperator.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnOperator.setFont(new Font("Tahoma", Font.BOLD, 18));
		btnOperator.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		btnOperator.setIcon(new ImageIcon(ELearningFormMainAdmin.class
				.getResource("/edu/unindra/elearning/image/operator.png")));
		btnOperator.setText("Operator");
		GridBagConstraints gbc_btnPlay = new GridBagConstraints();
		gbc_btnPlay.insets = new Insets(0, 0, 5, 5);
		gbc_btnPlay.gridx = 1;
		gbc_btnPlay.gridy = 1;
		add(btnOperator, gbc_btnPlay);

		btnReport = new ButtonImageReflection();
		btnReport.setVerticalAlignment(SwingConstants.BOTTOM);
		btnReport.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 13));
		btnReport.setSelectedIcon(new ImageIcon(
				"D:\\Private\\Campus\\Skripsi\\Iir\\image\\Exit.png"));
		btnReport.setIcon(new ImageIcon(ELearningFormMainAdmin.class
				.getResource("/edu/unindra/elearning/image/book.png")));
		btnReport.setText("Reports");
		grid2 = new java.awt.GridBagConstraints();
		grid2.insets = new Insets(0, 0, 0, 5);
		grid2.gridx = 0;
		grid2.gridy = 2;
		add(btnReport, grid2);

		btnSoal = new ButtonImageReflection();
		btnSoal.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 13));
		btnSoal.setIcon(new ImageIcon(ELearningFormMainAdmin.class
				.getResource("/edu/unindra/elearning/image/Refresh.png")));
		btnSoal.setVerticalAlignment(SwingConstants.BOTTOM);
		btnSoal.setText("Materi");
		GridBagConstraints gbc_btnAbout = new GridBagConstraints();
		gbc_btnAbout.gridx = 2;
		gbc_btnAbout.gridy = 2;
		add(btnSoal, gbc_btnAbout);

	}
}
